using System;

namespace ebcpatterns.rx
{
    public class StandardEventToStreamArgs
    {
        internal StandardEventToStreamArgs(object sender, EventArgs args)
        {
            this.Sender = sender;
            this.Args = args;
        }

        public object Sender { get; private set; }
        public EventArgs Args { get; private set; }
    }


    public class StandardEventToStream
    {
        public void Process(object sender, EventArgs args)
        {
            this.Event(new StandardEventToStreamArgs(sender, args));
        }

        public event Action<StandardEventToStreamArgs> Event;
    }
}